import { SubStateMachine } from '../../Base/SubStateMachine'
import { PARAMS_NAME_ENUM, SPIKES_COUNT_ENUM, SPIKES_COUNT_MAP_NUMBER_ENUM, SPIKES_TYPE_MAP_TOTAL_COUNT_ENUM } from '../../Enums'

export default class SpikesSubStateMachine extends SubStateMachine {

    run() {
        const value = this.fsm.getParams(PARAMS_NAME_ENUM.SPIKES_CURRENT_COUNT)
        this.currentState = this.stateMachines.get(SPIKES_COUNT_MAP_NUMBER_ENUM[value as number])
    }
}
